package com.mrtaohuan.data.entity;

import java.util.Date;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import com.googlecode.objectify.annotation.Cache;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.mrtaohuan.constant.Format;

@Entity(name = "Comment")
@Cache
@NoArgsConstructor
public class Comment {

	@Id
	@Getter
	@Setter
	long id;
	@Getter
	@Setter
	String email;
	@Getter
	@Setter
	String content;
	@Getter
	@Setter
	int format = Format.HTML;
	@Getter
	@Setter
	Date time = new Date();

	public Comment(String email, String content, int format) {
		super();
		this.email = email;
		this.content = content;
		this.format = format;
	}

}
